package cn.edu.ujn.booksshop.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.edu.ujn.booksshop.dao.Review;

public interface ReviewMapper {
    int deleteByPrimaryKey(Integer reviewid);

    int insert(Review row);

    int insertSelective(Review row);

    Review selectByPrimaryKey(Integer reviewid);

    int updateByPrimaryKeySelective(Review row);

    int updateByPrimaryKeyWithBLOBs(Review row);

    int updateByPrimaryKey(Review row);
    
    List<Review> selectByUserId(int id);
    
    List<Review> selectAll(@Param("page")Integer page,@Param("rows")Integer rows);
    
    Integer selectCount();
}